package com.jh.fcsm.beans.sys;

import com.jh.fcsm.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 用户操作日志表
 *
 * @author szx
 * @date 2020-07-13 14:20:26
 */
@Table(name = "SYS_LOG_OPER")
@ApiModel(value = "com.jh.fcsm.beans.sys.SysLogOper", description = "用户操作日志表")
public class SysLogOper extends BaseEntity {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    @Column(name = "OPER_ONE_MODULE")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "操作一级模块")
    private String operOneModule;

    @Column(name = "OPER_TWO_MODULE")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "操作二级模块")
    private String operTwoModule;

    @Column(name = "OPER_DETAILS")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "操作详细说明")
    private String operDetails;

    @Column(name = "IP")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "IP地址")
    private String ip;

    /**
     * GET 操作一级模块
     *
     * @return operOneModule
     */
    public String getOperOneModule() {
        return operOneModule;
    }

    /**
     * SET 操作一级模块
     *
     * @param operOneModule
     */
    public void setOperOneModule(String operOneModule) {
        this.operOneModule = operOneModule == null ? null : operOneModule.trim();
    }

    /**
     * GET 操作二级模块
     *
     * @return operTwoModule
     */
    public String getOperTwoModule() {
        return operTwoModule;
    }

    /**
     * SET 操作二级模块
     *
     * @param operTwoModule
     */
    public void setOperTwoModule(String operTwoModule) {
        this.operTwoModule = operTwoModule == null ? null : operTwoModule.trim();
    }

    /**
     * GET 操作详细说明
     *
     * @return operDetails
     */
    public String getOperDetails() {
        return operDetails;
    }

    /**
     * SET 操作详细说明
     *
     * @param operDetails
     */
    public void setOperDetails(String operDetails) {
        this.operDetails = operDetails == null ? null : operDetails.trim();
    }

    /**
     * GET IP地址
     *
     * @return ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * SET IP地址
     *
     * @param ip
     */
    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}